package yf.mall.vo.down;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class UserProfit {


    private Long id;

    @ExcelProperty("购买人")
    private String buyName;

    @ExcelProperty("用户名")
    private String name;

    @ExcelProperty("编号")
    private String code;

    @ExcelProperty("金额")
    private BigDecimal amount;

    @ExcelProperty("订单编号")
    @ExcelIgnore
    private String orderNo;

    public UserProfit(Long id, String name, String code, BigDecimal amount, String orderNo,String buyName) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.amount = amount;
        this.orderNo = orderNo;
        this.buyName = buyName;
    }
}
